
//应急值班的对话框
var oneyappDlg = null;

function oneyappDlgInit(){
	if(oneyappDlg==null){//如果对话框不存在，那么创建
		oneyappDlgCreate();
		oneyappDlg.zindex();
	}else if(itemExistArray(oneyappDlg,minDlgArray)){//如果对话框存在，且对话框处在最小化的状态
		//调用minbar.js之中的还原方法
		resizeMinDlgFuncBySecondaryfuncDiv(oneyappDlg);
	}
	oneyappDlg.zindex();
}	

//创建对话框
function oneyappDlgCreate(){
	oneyappDlg =  $.dialog({
		title: '预案匹配',
		content: 'url:jsp/yapp/yapp.jsp',
		dlgDivId: "oneyappDlgId",
		resize: false,
		max: false,
		left:(document.documentElement.clientWidth-830)/2+"px",
		top:'200px',
		width:'830px',
		height:'400px',
		min:oneyappDlgMinFunction,
		close:oneyappDlgCloseFunction,
		
	});
}

//关闭的方法
function oneyappDlgCloseFunction(){
	oneyappDlg = null;
}

//最小化的方法
function oneyappDlgMinFunction(){
	minDlgByAnimate(oneyappDlg);
}
